how to automate infrastructure provisioning